package com.xbongbong.paas.model;

import com.xbongbong.saas.domain.entity.ContractCompareEntity;
import com.xbongbong.saas.domain.entity.ContractEditFileEntity;

import java.util.List;
import java.util.Map;

/**
 * @author: yingjf
 * @date: 2023/3/7 18:50
 * @description:
 */
public interface ContractEditFileModel {
    Long insert(ContractEditFileEntity entity);

    void insertBatch(List<ContractEditFileEntity> list);

    List<ContractEditFileEntity> findEntities(Map<String, Object> param);

    Integer getEntityCount(Map<String, Object> param);

    void update(ContractEditFileEntity entity);

    ContractEditFileEntity getByKey(Long key, String corpid);

    ContractEditFileEntity getLastByFileId(String fileId);

    List<ContractEditFileEntity> getByFileIdAndFileVersion(String corpid,List<Map<String,String>> list);

    void updateFileNameByFileIdAndFileVersion(String corpid,String fileId,Integer fileVersion,String fileName);

    ContractEditFileEntity getOneByFileIdAndFileVersion(String corpid,String fileId,Integer fileVersion);
}
